<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>10-css选择器优先级</title>
    <style>
      .box {
        color: red;
      }
    </style>
  </head>
  <body>
    <!-- 
            id class 标签 行内 * !important 默认 继承

            !important > 行内样式 > #id > .class > 标签 > * > 默认 > 继承 
         -->
    <div class="box">
      <span>好好学习</span>
      <a href="javascript:;">atuguigu</a>
    </div>
  </body>
</html>
